//我的邀请码链接
var Main = function() {
	mui.init({
		swipeBack: false //启用右滑关闭功能
	});
	this.init();
	this.even();
	this.loadData();
};
Main.prototype = {
	init: function() {
		mui('.mui-scroll-wrapper').scroll({
			indicators: true //是否显示滚动条
		});
	},
	even: function() {
		$('#btn-saveRecommendLink').on('tap', function() {
			mui.toast('功能未完善');
		});
	},
	loadData: function() {
		if(storage.plainpassword){
			$('#recommendLink').val(h5_root_url + "/page/register.html?recommandPerson=" + storage.plainpassword);
		}
	}
}